package service.impl;

import dao.UserDao;
import model.User;
import org.springframework.stereotype.Service;
import service.UserService;

import javax.annotation.Resource;

/**
 * Created by lslnx on 2017/4/11.
 */
@Service("userService")
public class UserServiceImpl implements UserService{

    @Resource
    private UserDao userDao;

    @Override
    public User selectById(Integer id) {
        return userDao.selectByPrimaryKey(id);
    }

    @Override
    public User selectByuserName(String userName) {
        return userDao.selectByuserName(userName);
    }
}
